package com.aaa.demo03;

/**
 * @author ${崔灿}
 * @date 2022/10/31 17:42
 **/

public class TestTicket {
    public static void main(String[] args) {
        MyTicket myTicket = new MyTicket();
        Thread thread1 = new Thread(myTicket,"窗口A");
        Thread thread2 = new Thread(myTicket,"窗口B");
        Thread thread3 = new Thread(myTicket,"窗口C");
        Thread thread4 = new Thread(myTicket,"窗口D");
        thread1.start();
        thread2.start();
        thread3.start();
        thread4.start();
    }
}
